import axios from "axios";

const service = axios.create({
  baseURL: "/api",
  timeout: 3000
});

service.interceptors.request.use(conf => {
  return conf
});

service.interceptors.response.use(conf => {
  return conf.data
});

export default service;